<template>
	<view class="reset-pwd">
		<uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData" class="form">
			<uni-forms-item label="手机号" required name="userName">
				<uni-easyinput v-model="valiFormData.userName" placeholder="请输入手机号/昵称" />
			</uni-forms-item>
			<uni-forms-item label="新密码" required name="userPwd">
				<uni-easyinput v-model="valiFormData.userPwd" placeholder="请输入新密码" />
			</uni-forms-item>
			<uni-forms-item label="确认密码" required name="sureUserPwd">
				<uni-easyinput v-model="valiFormData.sureUserPwd" placeholder="再次填写确认" />
			</uni-forms-item>
		</uni-forms>
	</view>
</template>

<script>
	import http from "@/common/api/reqeust.js";

	export default {
		data() {
			return {
				valiFormData: {
					userName: '',
					userPwd: '',
					sureUserPwd: '',
				},
				// 规则
				rules: {
					userPwd: {
						rules: [{
							required: true,
							errorMessage: '不能为空'
						}, {
							format: 'number',
							errorMessage: '只能输入数字'
						}]
					}
				}
			};
		},
		onLoad() {

		}
	}
</script>

<style lang="scss">

</style>
